/*
 * Created by LiuYou on 2020/11/27.
 *
 */

#include "GraphicsCard.hpp"
#include "impl/GraphicsCardImpl.hpp"


GraphicsCard_::GraphicsCard::GraphicsCard(int graphicsCardId, const std::string& graphicsCardFeature) : pImpl(
        std::make_shared<GraphicsCardImpl>(graphicsCardId, graphicsCardFeature)) {

}

GraphicsCard_::GraphicsCard::~GraphicsCard() = default;

int GraphicsCard_::GraphicsCard::getGraphicsCardId() const {
    return pImpl->getGraphicsCardId();
}

const std::string& GraphicsCard_::GraphicsCard::getGraphicsCardFeature() const {
    return pImpl->getGraphicsCardFeature();
}

std::ostream& GraphicsCard_::operator<<(std::ostream& os, const GraphicsCard_::GraphicsCard& card) {
/*    os << "graphicsCardId: " << card.graphicsCardId << " graphicsCardFeature: " << card.graphicsCardFeature;
    return os;*/

    operator<<(os, *card.pImpl);
    return os;
}


